/*
 * MapObstacle.h
 *
 *	Version 1.0
 *  Created on: Sep 23, 2010
 *      Author: Mark Zmek
 *
 *  Copyright 2010 Michigan Technological University. All rights reserved.
 */

#include "sprite.h"
//#include "logic.h"

#ifndef MAPOBSTACLE_H_
#define MAPOBSTACLE_H_

class MapObstacle : public Sprite{

public:

	MapObstacle(Renderer * render, SDL_Rect pos , SDL_Surface * img , GLuint id);

	~MapObstacle();

	//moves the obstacle based on it's velocity and and how much time has passed since it last moved.
	void move(Uint32 ticks);

	void show();
	void show(int x, int y);

	//sets the x and y velocities of the obstacle
	void setVelocities(int xVel, int yVel);

private:
	//randomly generated movement
	int xVelocity;
	int yVelocity;
};

#endif /* MAPOBSTACLE_H_ */
